#include <STC12C5A60S2.H>
#include "intrins.h"


void DelayMs(unsigned int ms)		//@11.0592MHz
{
	unsigned char i, j;

	while(ms--)
	{
		_nop_();
		i = 11;
		j = 190;
		do
		{
			while (--j);
		} while (--i);	
	
	
	
	}

}

void DelayUs2x(unsigned int n)		//@11.0592MHz
{  

	unsigned char i;
	while(n--)
	{
	   	_nop_();
		_nop_();
		i = 2;
		while (--i);
	
	}



}

